<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/blankbh_look/Blankbh_Look.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/blankbh_look/Blankbh_Look.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Blankbh_Look",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "三地毛坯库ByBH",
                name: "blankbh_look/Blankbh_Look",
                newTabEdit: false,
                url: "/Blankbh_Look/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductId":"","Lot":"","Qty":"","Grade":"","Spec":"","Br":"","Hcj":"","Remarks":""});
            const editFormOptions = ref([[{"title":"产品代码","field":"ProductId"},
                               {"title":"批次","field":"Lot"}],
                              [{"title":"数量（个）","field":"Qty","type":"number"},
                               {"title":"性能","field":"Grade"}],
                              [{"title":"规格","field":"Spec"},
                               {"title":"Br值","field":"Br","type":"decimal"}],
                              [{"title":"Hcj值","field":"Hcj","type":"decimal"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"ProductId":"","Lot":"","Grade":"","Spec":"","Br":[null,null],"Hcj":[null,null],"InventoryAge":[null,null],"Location":""});
            const searchFormOptions = ref([[{"title":"厂区","field":"Location","type":"like"},{"title":"产品代码","field":"ProductId","type":"like"},{"title":"批次","field":"Lot","type":"like"},{"title":"性能","field":"Grade","type":"like"}],[{"title":"Br值","field":"Br","type":"range"},{"title":"Hcj值","field":"Hcj","type":"range"},{"title":"库存周期","field":"InventoryAge","type":"range"},{"title":"规格","field":"Spec","type":"like"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Lot",title:"批次",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Qty",title:"数量（个）",type:"int",sort:true,width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Grade",title:"性能",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Spec",title:"规格",type:"string",sort:true,width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Br",title:"Br值",type:"decimal",sort:true,width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Hcj",title:"Hcj值",type:"decimal",sort:true,width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryAge",title:"库存周期",type:"int",sort:true,width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Location",title:"厂区",type:"string",sort:true,width:120,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
